import request from '@/utils/request'

// 登录
// export const getAuthCodeAPI = (clientToken) => {
//   return request({
//     url: '/api/user-service/user/imageCode/',
//     method: 'POST',
//     clientToken
//   })
// }
// 验证码请求
export const codeImgAPI = (clientToken) => request({
  url: `/user-service/user/imageCode/${clientToken}`,
  responseType: 'arraybuffer'
})
// 登录
export const dengLuAPI = (data) => {
  return request({
    url: '/user-service/user/login',
    method: 'POST',
    data
  })
}
// 用户信息
export const getuserinfoAPI = (id) => {
  return request({
    url: `/user-service/user/:${id}`
  })
}
